<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>GSoC2011SfM: OpencvSfM::StructureEstimator Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">GSoC2011SfM
   &#160;<span id="projectnumber">0.1</span>
   </div>
   <div id="projectbrief">Google Summer of Code 2011: Structure from motion</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>OpencvSfM</b>      </li>
      <li class="navelem"><a class="el" href="class_opencv_sf_m_1_1_structure_estimator.html">StructureEstimator</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">OpencvSfM::StructureEstimator Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="OpencvSfM::StructureEstimator" -->
<p>This class tries to find the 3D structure using a sequence and cameras fully parameterized.  
 <a href="class_opencv_sf_m_1_1_structure_estimator.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_structure_estimator_8h_source.html">StructureEstimator.h</a>&gt;</code></p>

<p><a href="class_opencv_sf_m_1_1_structure_estimator-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_structure_estimator.html#a86bcc4a1ff07b546ed1c624392afd023">StructureEstimator</a> (<a class="el" href="class_opencv_sf_m_1_1_sequence_analyzer.html">SequenceAnalyzer</a> *sequence, std::vector&lt; <a class="el" href="class_opencv_sf_m_1_1_point_of_view.html">PointOfView</a> &gt; *cameras, int max_repro_error=10)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_structure_estimator.html#a227c1d919bd722945efeb395a2311498">~StructureEstimator</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::vector&lt; char &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_structure_estimator.html#aebc57769a62034b549d9b729a3e8c1e7">computeStructure</a> (unsigned int max_error=10)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="class_opencv_sf_m_1_1_track_of_points.html">TrackOfPoints</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_structure_estimator.html#a120e2b12840f4c4120602a58ab444560">computeStructure</a> (const std::vector&lt; int &gt; &amp;list_of_images, unsigned int max_error=10)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_structure_estimator.html#afe1217c1dfcb8d2336272f3faba163bc">removeOutliersTracks</a> (double max_error=10, std::vector&lt; <a class="el" href="class_opencv_sf_m_1_1_track_of_points.html">TrackOfPoints</a> &gt; *list_of_tracks=NULL)</td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac2f31a43a949390a4ef0341b25658458"></a><!-- doxytag: member="OpencvSfM::StructureEstimator::sequence_" ref="ac2f31a43a949390a4ef0341b25658458" args="" -->
<a class="el" href="class_opencv_sf_m_1_1_sequence_analyzer.html">SequenceAnalyzer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_structure_estimator.html#ac2f31a43a949390a4ef0341b25658458">sequence_</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Object containing all 2D information of this sequence. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abd0b6883acdf33481d92bac73c258a9c"></a><!-- doxytag: member="OpencvSfM::StructureEstimator::cameras_" ref="abd0b6883acdf33481d92bac73c258a9c" args="" -->
std::vector&lt; <a class="el" href="class_opencv_sf_m_1_1_point_of_view.html">PointOfView</a> &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_structure_estimator.html#abd0b6883acdf33481d92bac73c258a9c">cameras_</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">List of cameras (intra and extern parameters...) <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a29338acd6413df6c54263a0f58c71dc4"></a><!-- doxytag: member="OpencvSfM::StructureEstimator::max_repro_error_" ref="a29338acd6413df6c54263a0f58c71dc4" args="" -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_structure_estimator.html#a29338acd6413df6c54263a0f58c71dc4">max_repro_error_</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum reprojection error allowed. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This class tries to find the 3D structure using a sequence and cameras fully parameterized. </p>

<p>Definition at line <a class="el" href="_structure_estimator_8h_source.html#l00016">16</a> of file <a class="el" href="_structure_estimator_8h_source.html">StructureEstimator.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a86bcc4a1ff07b546ed1c624392afd023"></a><!-- doxytag: member="OpencvSfM::StructureEstimator::StructureEstimator" ref="a86bcc4a1ff07b546ed1c624392afd023" args="(SequenceAnalyzer *sequence, std::vector&lt; PointOfView &gt; *cameras, int max_repro_error=10)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OpencvSfM::StructureEstimator::StructureEstimator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_opencv_sf_m_1_1_sequence_analyzer.html">SequenceAnalyzer</a> *&#160;</td>
          <td class="paramname"><em>sequence</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="class_opencv_sf_m_1_1_point_of_view.html">PointOfView</a> &gt; *&#160;</td>
          <td class="paramname"><em>cameras</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>max_repro_error</em> = <code>10</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor of this 3D structure estimator </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">sequence</td><td>the address of the object containing all 2D information of this sequence </td></tr>
    <tr><td class="paramname">cameras</td><td>List of cameras (intra and extern parameters...) </td></tr>
    <tr><td class="paramname">max_repro_error</td><td>Maximum reprojection error allowed </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_structure_estimator_8h_source.html#l00030">30</a> of file <a class="el" href="_structure_estimator_8h_source.html">StructureEstimator.h</a>.</p>

</div>
</div>
<a class="anchor" id="a227c1d919bd722945efeb395a2311498"></a><!-- doxytag: member="OpencvSfM::StructureEstimator::~StructureEstimator" ref="a227c1d919bd722945efeb395a2311498" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OpencvSfM::StructureEstimator::~StructureEstimator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Destructor will not release datas as they where given by address! </p>

<p>Definition at line <a class="el" href="_structure_estimator_8h_source.html#l00038">38</a> of file <a class="el" href="_structure_estimator_8h_source.html">StructureEstimator.h</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aebc57769a62034b549d9b729a3e8c1e7"></a><!-- doxytag: member="OpencvSfM::StructureEstimator::computeStructure" ref="aebc57769a62034b549d9b729a3e8c1e7" args="(unsigned int max_error=10)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">vector&lt; char &gt; OpencvSfM::StructureEstimator::computeStructure </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>max_error</em> = <code>10</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Project previously 2D points matches using cameras parameters </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">max_error</td><td>maximum error allowed. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the mask of correct points ( 0 if error &gt; max_error ) </dd></dl>

<p>Definition at line <a class="el" href="_structure_estimator_8cpp_source.html#l00012">12</a> of file <a class="el" href="_structure_estimator_8cpp_source.html">StructureEstimator.cpp</a>.</p>

<p>Referenced by <a class="el" href="_euclidean_estimator_8cpp_source.html#l00744">OpencvSfM::EuclideanEstimator::computeReconstruction()</a>, and <a class="el" href="_euclidean_estimator_8cpp_source.html#l00652">OpencvSfM::EuclideanEstimator::initialReconstruction()</a>.</p>

</div>
</div>
<a class="anchor" id="a120e2b12840f4c4120602a58ab444560"></a><!-- doxytag: member="OpencvSfM::StructureEstimator::computeStructure" ref="a120e2b12840f4c4120602a58ab444560" args="(const std::vector&lt; int &gt; &amp;list_of_images, unsigned int max_error=10)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; <a class="el" href="class_opencv_sf_m_1_1_track_of_points.html">TrackOfPoints</a> &gt; OpencvSfM::StructureEstimator::computeStructure </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>list_of_images</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>max_error</em> = <code>10</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Project previously 2D points matches for only two views </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">list_of_images</td><td>list of image indexes to use </td></tr>
    <tr><td class="paramname">max_error</td><td>maximum error allowed. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>output of tracks triangulated ( contain 3D point ) </dd></dl>

<p>Definition at line <a class="el" href="_structure_estimator_8cpp_source.html#l00046">46</a> of file <a class="el" href="_structure_estimator_8cpp_source.html">StructureEstimator.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="afe1217c1dfcb8d2336272f3faba163bc"></a><!-- doxytag: member="OpencvSfM::StructureEstimator::removeOutliersTracks" ref="afe1217c1dfcb8d2336272f3faba163bc" args="(double max_error=10, std::vector&lt; TrackOfPoints &gt; *list_of_tracks=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OpencvSfM::StructureEstimator::removeOutliersTracks </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>max_error</em> = <code>10</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="class_opencv_sf_m_1_1_track_of_points.html">TrackOfPoints</a> &gt; *&#160;</td>
          <td class="paramname"><em>list_of_tracks</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Remove points from track when projection error &gt; max_error </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">max_error</td><td>maximum error of back projection allowed </td></tr>
    <tr><td class="paramname">list_of_tracks</td><td>list of tracks to work with. If NULL or not set, will use <a class="el" href="class_opencv_sf_m_1_1_structure_estimator.html#ac2f31a43a949390a4ef0341b25658458" title="Object containing all 2D information of this sequence.">StructureEstimator::sequence_</a> </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_structure_estimator_8cpp_source.html#l00095">95</a> of file <a class="el" href="_structure_estimator_8cpp_source.html">StructureEstimator.cpp</a>.</p>

<p>Referenced by <a class="el" href="_euclidean_estimator_8cpp_source.html#l00744">OpencvSfM::EuclideanEstimator::computeReconstruction()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>D:/Travail/These/Determination caracteristiques camera/GSoC/SfM/src/<a class="el" href="_structure_estimator_8h_source.html">StructureEstimator.h</a></li>
<li>D:/Travail/These/Determination caracteristiques camera/GSoC/SfM/src/<a class="el" href="_structure_estimator_8cpp_source.html">StructureEstimator.cpp</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Sun Aug 21 2011 16:45:54 for GSoC2011SfM by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
